//1.导入request对象
import request from "@/utils/request";
//2.创建MenuApi对象
const menuApi = {
    /**
     * 根据用户名查询数据
     */
    async queryMenuByName(username: String) {
        let res = await request.get("menu/queryMenuByName", { params: { username } });
        return res.data;
    }
}
//导出api对象
export default menuApi;